package CollectionBaseTest;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class TestHashSet {

static Set<String> set = new HashSet<String>();

public static void test(){

set.add("A");

set.add("C");

set.add("BC");

set.add("123");

Iterator<String> it = set.iterator();

while(it.hasNext()){

String element = it.next();

System.out.println(element+""+element.hashCode());

}
}

public static void main(String[] args){

test();

}

}